Fix a redraw problem with action widgets
authorMatthias Clasen <mclasen@redhat.com>
Mon, 18 Jan 2010 19:04:49 +0000 (14:04 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 18 Jan 2010 22:06:48 +0000 (17:06 -0500)
Fixes bug 603245.

gtk/gtknotebook.c

index e41f4e73249a512ac6e2c3bb455d0a2ae58c6027..ef9fba5d7366a63bf4d367d1b45c37fc02a90562 100644 (file)
@@ -5276,7 +5276,7 @@ gtk_notebook_calculate_shown_tabs (GtkNotebook *notebook,
                                  remaining_space, STEP_NEXT);
        }
 
-      if (tab_space <= 0 || *remaining_space < 0)
+      if (tab_space <= 0 || *remaining_space <= 0)
        {
          /* show 1 tab */
          notebook->first_tab = notebook->focus_tab;